Release 10.1A: OpenEdge Data Management:
SQL Reference
EXECUTE IMMEDIATE
Executes the statement specified in a statement_string or host_variable.
Syntax
statement_nameName of the prepared SQL statement.
structure_nameName of an SQL descriptor area (SQLDA).
Notes
- The character string form of the statement is referred to as a statement string. An
EXECUTE IMMEDIATEstatement accepts either a statement string or a host variable as input.- A statement string must not contain host variable references or parameter markers.
- A statement string must not begin with
EXEC SQLdelimiter and must not end with a semicolon.- When an
EXECUTE IMMEDIATEstatement is executed, the SQL engine parses the statement and checks it for errors. Any error in the execution of the statement is reported in the SQLCA.- If the same SQL statement is to be executed multiple times, it is more efficient to use
PREPAREandEXECUTEstatements, rather than anEXECUTE IMMEDIATEstatement.Related statements
EXECUTE
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |